<template>
  <van-swipe class="my-swipe" :autoplay="2000" indicator-color="item.image_url">
    <van-swipe-item v-for="item in bannerArr" :key="item.id"
      ><img :src="item.image_url" />
    </van-swipe-item>
  </van-swipe>
</template>

<script>
export default {
  name: "Swipe",
  data() {
    return {};
  },
  props: ["bannerArr"],
};
</script>

<style lang='less' scope>
.my-swipe .van-swipe-item {
  width: 100%;
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  background-color: #39a9ed;
  img {
    width: 100%;
    height: auto;
    box-sizing: border-box;
  }
}
</style>